<script setup>
import { RouterLink, RouterView } from 'vue-router'
</script>

<template>
  <header class="naruto-header">
    <div class="header-container">
      <div class="logo-container">
        <h1 class="naruto-logo">NARUTO</h1>
        <div class="logo-subtitle">火影忍者</div>
      </div>
      
      <nav class="naruto-nav">
        <RouterLink to="/" class="nav-link">首页</RouterLink>
        <RouterLink to="/characters" class="nav-link">角色</RouterLink>
        <RouterLink to="/teams" class="nav-link">忍者队伍</RouterLink>
        <RouterLink to="/episodes" class="nav-link">剧集</RouterLink>
        <RouterLink to="/about" class="nav-link">关于</RouterLink>
      </nav>
    </div>
  </header>

  <main class="main-content">
    <RouterView />
  </main>

  <footer class="naruto-footer">
    <div class="footer-content">
      <p>© 2024 火影忍者网站 | 本网站仅用于学习和展示</p>
    </div>
  </footer>
</template>

<style scoped>
:root {
  --naruto-orange: #ff6b00;
  --naruto-dark-orange: #d45a00;
  --naruto-blue: #0084ff;
  --naruto-dark-blue: #0066cc;
  --naruto-yellow: #ffd700;
  --naruto-black: #333333;
  --naruto-light-gray: #f5f5f5;
}

.naruto-header {
  background-color: var(--naruto-orange);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.naruto-logo {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-subtitle {
  font-size: 1rem;
  margin-top: 0.25rem;
  color: var(--naruto-yellow);
  font-weight: 500;
}

.naruto-nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  background-color: var(--naruto-dark-orange);
  transform: translateY(-2px);
}

.nav-link.router-link-exact-active {
  background-color: var(--naruto-dark-orange);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.main-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
  background-color: var(--naruto-light-gray);
}

.naruto-footer {
  background-color: var(--naruto-black);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .naruto-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .nav-link {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }
  
  .naruto-logo {
    font-size: 2rem;
  }
}</style>
